<?php

namespace addons\xpframework\controller;

use addons\xpframework\library\xcore\xcore\utils\DevXcFaUtils;
use think\addons\Controller;

// http://fastadmin_addons_csmitsm.local/addons/xpframework/dev/index
class Dev extends Controller
{

    public function index()
    {
        $this->error("此页面为开发辅助类", null, null, 10000);
    }

    public function add_menu_function()
    {
        DevXcFaUtils::add_menu_function(109, "xcflow", [
            ["mdmconfig", "配置"],
            ["mdmconfig", "配置"],
            ["selectTables", "选择表格"],
            ["selectTablefields", "选择表字段"],
            ["publishmenu", "发布菜单"],
        ]);
        DevXcFaUtils::add_menu_function(263, "xcflowdbview", [
            ["selectTables", "选择表格"],
            ["selectTablefields", "选择表字段"],
        ]);
        DevXcFaUtils::add_menu_function(208, "xcflowmdm", [
            ["fieldconfig", "选择表格"],
            ["publishmenu", "发布菜单"]
        ]);
        DevXcFaUtils::add_menu_function(220, "xcflowmdm_data", [
            ["createOrUpdateXcformPage", "创建"],
            ["createOrUpdateXcformSaveAjax", "保存"],
            ["createOrUpdateXcformSubmitAjax", "提交"],
            ["showXcformPage", "详情"],
            ["queryRelateSubTableFieldsAndDatasByFieldcode", "查询子表数据"],
            ["getTabledataRowByFieldcodeAndDataid", "查询字段值"],
            ["queryTabledataListByFieldcode", "选择表格数据"],
            ["upload", "上传文件"],
        ]);

        DevXcFaUtils::add_menu_function(251, "xcflowviewpage", [
            ["configpage", "页面配置"],
        ]);

        DevXcFaUtils::add_menu_function(257, "xcflowviewpageview", [
            ["configview", "页面配置"],
            ["addConfigview", "增加页面"],
            ["deleteConfigview", "删除页面"],
            ["savesubmit", "保存"],
            ["queryFieldsByTableName", "查询字段"],
            ["getXcformjsonByTablename", "获取表格配置"],
            ["getTableDatasByTablename", "选择表格数据"],
        ]);

        DevXcFaUtils::add_menu_function(336, "Xcflowviewpageviewdata", [
            ["indexajax", "查询数据"],
            ["createOrUpdateXcformPage", "创建"],
            ["showXcformPage", "详情"]
        ]);

        DevXcFaUtils::add_menu_function(337, "xcmyflowInstance", [
            ["createOrUpdateXcformPage", "创建"],
            ["createOrUpdateXcformSaveAjax", "保存"],
            ["createOrUpdateXcformSubmitAjax", "提交"],
            ["showXcformPage", "详情"],
            ["queryRelateSubTableFieldsAndDatasByFieldcode", "查询子表数据"],
            ["getTabledataRowByFieldcodeAndDataid", "查询字段值"],
            ["queryTabledataListByFieldcode", "选择表格数据"],
            ["upload", "上传文件"],
            ["allflows", "创建流程"],
            ["showXcflowPage", "详情"],
            ["showXcformPage", "详情"],
            ["submitPassFlowAjax", "流程审核"],
            ["submitRejectFlowAjax", "流程退回"],
            ["showFlowPageGraph", "流程配置"],
            ["submitPassFlowAjax", "流程审核"],
        ]);
    }
}
